約 5,762,053 件
https://w.atwiki.jp/karaiknowledge/pages/29.html
このページではPHP関連のTipsを紹介する。 Free BSDへのインストール方法(portinstallを利用する方法) 1.portinstallを利用してphp5をインストールする。 #portinstall php5 2.portinstall を利用してphp5-extensionsをインストールする。 #portinstall php5-extensions Edited by karai 2007年11月12日 PHP hacks コード上からHTTPRequestを送信する cURLを使わずに、PHPでPOSTリクエストを送信する Edited By karai 2007年11月12日 PHPによるデザインパターン入門 $_SERVERに格納されている値 PHPからサーバまわりの情報を取得する為に利用することができる。これらの変数を利用することによって環境への依存度を下げることが可能である。 $_SERVER[ GATEWAY_INTERFACE ] CGIのバージョン $_SERVER[ SERVER_NAME ] サーバ名 $_SERVER[ SERVER_SOFTWARE ] サーバID $_SERVER[ SERVER_PROTOCOL ] プロトコル名・リビジョン(HTTP/1.0) $_SERVER[ REQUEST_METHOD ] リクエストの種類(HEAD・POST・GET・PUT等) $_SERVER[ QUERY_STRING ] クエリーを格納 $_SERVER[ DOCUMENT_ROOT ] サーバのルートディレクトリ $_SERVER[ HTTP_ACCEPT ] Acceptヘッダの内容 $_SERVER[ HTTP_ACCEPT_CHARASET ] Accept-Charasetヘッダの内容(eucなど) $_SERVER[ HTTP_ACCEPT_ENCODING ] Accept-Charasetヘッダの内容(gzipなど) $_SERVER[ HTTP_ACCEPT_LANGUAGE ] Accept-Languageヘッダの内容(jpなど) $_SERVER[ HTTP_CONNECTION ] Connectionヘッダの内容(Keep-Aliveなど) $_SERVER[ HTTP_HOST ] Hostヘッダの内容 $_SERVER[ HTTP_REFERER ] 現在のページへのリンク元のURLを格納。*ブラウザによっては設定しない場合や Hidden-Referrer などと設定する場合があり、必ずしも取得できるとは限らない。 $_SERVER[ HTTP_USER_AGENT ] User_Agentヘッダの内容(compatible; MSIE 6.0; Windows NT 5.0など) $_SERVER[ REMOTE_ADDR ] クライアントのIPアドレス $_SERVER[ REMOTE_PORT ] クライアントマシンで使用されているポート番号 $_SERVER[ SCRIPT_FILENAME ] 実行中のスクリプトの絶対パス $_SERVER[ SERVER_PORT ] サーバで使用されているポート番号 $_SERVER[ SERVER_SIGNATURE ] サーバのバージョン・ヴァーチャルホスト名 $_SERVER[ PATH_TRANSLATED ] 実行中のスクリプトの物理パス $_SERVER[ SCRIPT_NAME ] 実行中のスクリプトのパス $_SERVER[ REQUEST_URI ] 指定されたURI $_SERVER[ PHP_SELF ] 実行中のスクリプトのドキュメントルートに対する相対パス PHPスクリプトなどで、自身にフォームを送信したい場合などにactionにこの変数を設定することが多い。 Edited By karai 2007年11月12日 即解PHP 5スクリプティング入門 その他 PHPの日本語処理
https://w.atwiki.jp/cheapugg058/pages/15.html
As written for Themichael kors store Roots by political correspondent Keli Goff, Ryan reportedly dated an African-American woman while in college Richard Matheson Richard Burton Matheson (born February 20, 1926) is an American author and screenwriter, primarily in the fantasy, horror, and science fiction genres However, the best advantage to ordering Direct TV is in pricedittoTweet{background #fff;padding 10px 12px 10px 50px;margin 0;min-height 48px;color #000;font-size 18px !important;line-height 22px;-moz-border-radius 5px;-webkit-border-radius 5px;} p Even then, I’d weigh that decision very carefully Be sure to watch the BCS Championship 2012 online streaming tv Var zooms smooth snow surface and the less a loss of control at high speeds of risk in relation to boarding or skiing Cheap3 If you hand wash and line dry your bras, they will last longerLast week, I wanted to watch my favorite football team, The Cleveland Browns, play against their arch-rival, the Pittsburgh SteelersJust to give you a glimpse, though, of what these options are, take a look at the list EphedraEphedra is actually sourced from a herbal plan Whilst a scientifically designed and constructed girdle can make one feel and look great, a poorly made one can be very uncomfortable making the wearer feel sore all over In north face outlet online the film, Bond and Melina Havelock become tangled in a web of deception spun by rival Greek businessmen against the backdrop of Cold War spy gamesindent {margin-left 20px;} Thus, it won’t be as effective when used in the long-termS They are not there to provide people with a way to pay their cell phone bill, or provide repair services for cell phones that become inoperable In 1976, academics Jensen and Meckling published a paper, "Theory of the Firm Managerial Behavior, Agency Costs and Ownership Structure", which had the effect of shifting the focus of corporate managers from the business operations (the real market) to the share price (shareholder value, or the expectations market) It has made over 3 million books accessible on the Apple devices for you to read which are not desired at all No matter how good the said team is, they cannot simply win matches with those injuries In the top of the eleventh inning, right fielder Dwight Evans made a sport jerseys spectacular catch of a Joe Morgan line drive and doubled Ken Griffey at first base to preserve the tie The wishes of all these people are now granted - weight loss is now easy with Super Slim Pomegranate She owns and controls her father s business interests, through Cox Enterprises To add salt to the wound, the film won three Golden Raspberry Awards Worst Actor (Cosby), Worst Picture, and Worst Screenplay WI Dept Americans are known to love this sport so much that they play the sport among family and friendsWhen to Use a ColonColons introduce us to sentences As a solo artist, she recorded great music, with singles like "I Hate Myself for Loving You," "Do You Want to Touch Me," and probably most recognizably, "I Love Rock n RollErin AndrewsDaddy issues?5 It is Frank Gore Jersey as follows AmeriTrust Groupe, IncWere you looking for some serious information?So sorry Sherman, a former half back, had torn his meniscus in college, and converted to quarterback his senior year when Shaughnessy installed the T-Formation at the University of Chicago Read more on words to thank a teacherThink back to when you first chose your careertimestamp {font-size 12px;display block;color #999;} p Just plan to have the food cooked at least an hour and a half before the game startstimestamp {font-size 12px;display block;color #999;} p -Wikipedia Dad may have to look for a second job Whatever the drink of choice for the party is, be sure to have plenty on handname { font-weight bold; } div During the War of 1812, the Capitol and the White House in Washington was burned down by the British Namely, NASCAR Michael Turner Jersey Prior to my contacting you, I confirmed a couple of facts about Leo Wanta/$27author img {float left; margin 0px 7px 0px 0px;} p Dallas9 I hope that CNBC continues to feature Seeking Alpha, but the process should be more disciplined Since that issue, Tebow has appeared on the cover five times as a Gator and once so far as a Denver Bronco In as short as a few weeks of use (even a few days for some), you can shed off excess pounds, lower down those cravings, and enjoy a slimmer, more attractive bodypng);background-repeat no-repeat;} p of Revenue---Tax Appeals Commission There is no way that it is easy being a cheerleader RB Donald Brown 5 10" 210 Stats atJoe Flacco Jersey Connecticut 2,083 Rushing Yards and 18 TD s The Colts are not sure if they can count on RB Joseph Addai to stay healthy for the entire season Thank you for your coverage, I hope all of us can make a contribution to return these funds to the rightful owners, the American people, and put forth to vitally needed infrastructure projects such as education, transportation!
https://w.atwiki.jp/amazonz/pages/44.html
?php require_once( Connections/connAmazon2.php ); ? ?php session_start(); $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False; // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") true) { $isValid = true; } } return $isValid; } $MM_restrictGoTo = "top.php"; if (!(*1) (isAuthorized("",$MM_authorizedUsers, $_SESSION[ MM_Username ], $_SESSION[ MM_UserGroup ])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER[ PHP_SELF ]; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = " "; if (isset($QUERY_STRING) strlen($QUERY_STRING) 0) $MM_referrer .= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location ". $MM_restrictGoTo); exit; } ? ?php function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) $theValue; switch ($theType) { case "text" $theValue = ($theValue != "") ? " " . $theValue . " " "NULL"; break; case "long" case "int" $theValue = ($theValue != "") ? intval($theValue) "NULL"; break; case "double" $theValue = ($theValue != "") ? " " . doubleval($theValue) . " " "NULL"; break; case "date" $theValue = ($theValue != "") ? " " . $theValue . " " "NULL"; break; case "defined" $theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue; break; } return $theValue; } if (*2) ($_POST[ id ] != "")) { $deleteSQL = sprintf("DELETE FROM amazonz_data WHERE id=%s", GetSQLValueString($_POST[ id ], "int")); mysql_select_db($database_connAmazon2, $connAmazon2); $Result1 = mysql_query($deleteSQL, $connAmazon2) or die(mysql_error()); $deleteGoTo = "admin2.php"; if (isset($_SERVER[ QUERY_STRING ])) { $deleteGoTo .= (strpos($deleteGoTo, ? )) ? " " "?"; $deleteGoTo .= $_SERVER[ QUERY_STRING ]; } header(sprintf("Location %s", $deleteGoTo)); } $colname_rsAmazon = "1"; if (isset($_GET[ id ])) { $colname_rsAmazon = (get_magic_quotes_gpc()) ? $_GET[ id ] addslashes($_GET[ id ]); } mysql_select_db($database_connAmazon2, $connAmazon2); $query_rsAmazon = sprintf("SELECT * FROM amazonz_data WHERE id = %s", $colname_rsAmazon); $rsAmazon = mysql_query($query_rsAmazon, $connAmazon2) or die(mysql_error()); $row_rsAmazon = mysql_fetch_assoc($rsAmazon); $totalRows_rsAmazon = mysql_num_rows($rsAmazon); ? html head meta http-equiv="Content-Type" content="text/html; charset=euc-jp" / title Amazonz -削除確認- /title link href="css.css" rel="stylesheet" type="text/css" / script language="JavaScript" type="text/javascript" !-- function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a i a.length (x=a[i]) x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?")) 0 parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n]) d.all) x=d.all[n]; for (i=0;!x i d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x d.layers i d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i (a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } /script /head body onload="MM_preloadImages( img/account2.jpg , img/key2.jpg , img/member2.jpg , img/kate2.jpg )" div id="body_2" div id="head" div id="head1" /div div id="head2" /div /div div id="main" div id="menu" div class="img1" img src="img/menu1.jpg" width="180" height="24" class="img1" / /div div class="img1" div class="img1" ?php echo ($_SESSION[ MM_Username ]. "さん こんにちわ!"); ? /div p a href="admin2.php" 管理画面 /a br a href="admin2.php?doLogout=true" ログアウト /a br a href="top.php" HOME /a /p /div div class="img1" img src="img/menu1.jpg" width="180" height="24" hspace="0" vspace="0" border="0" class="img1" / /div div class="img1" a href="member_s.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage( Image10 , , img/member2.jpg ,1)" img src="img/member.jpg" alt="メンバー検索" name="Image10" width="180" height="40" border="0" id="Image10" / /a /div div class="img1" a href="category_s.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage( Image11 , , img/kate2.jpg ,1)" img src="img/kate.jpg" alt="カテゴリー検索" name="Image11" width="180" height="40" border="0" id="Image11" / /a /div div class="img1" a href="key_s.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage( Image9 , , img/key2.jpg ,1)" img src="img/key.jpg" alt="キーワード検索" name="Image9" width="180" height="40" border="0" id="Image9" / /a /div /div div id="text2" img src="img/blank.jpg" / br p br /p table width="400" border="0" align="center" cellpadding="3" class="style3" tr td p align="center" この投稿を本当に削除してもよろしいですか? a href="admin2.php" 管理画面に戻る /a /p /td /tr tr td ID: ?php echo $row_rsAmazon[ id ]; ? /td /tr tr td タイトル: ?php echo $row_rsAmazon[ title ]; ? /td /tr tr td カテゴリ: ?php echo $row_rsAmazon[ category ]; ? /td /tr tr td トピック: ?php echo nl2br($row_rsAmazon[ topic ]); ? /td /tr tr td 登録者: ?php echo $row_rsAmazon[ uset_id ]; ? /td /tr tr td 最終更新日時: ?php echo $row_rsAmazon[ uptime ]; ? /td /tr tr td form name="form1" method="post" action="" input type="submit" name="Submit" value="削除" input name="id" type="hidden" id="id" value=" ?php echo $row_rsAmazon[ id ]; ? " 削除後は管理画面に戻ります /form /td /tr /table /div div id="under" div id="under1" /div div id="under2" /div /div /div /div /body /html
https://w.atwiki.jp/water28/pages/47.html
歴史 インストール 歴史 参考 http //www.scollabo.com/banban/php/php_01.html インストール 参考 http //blog.goo.ne.jp/nhiro4/e/08f4fd3dfe82549865bd9d96ec744765 ダウンロード 参考 http //www.php.net/downloads.php [root@localhost ~]# cd /usr/local/setup/archive/ [root@localhost archive]# wget http //jp2.php.net/get/php-5.3.2.tar.gz/from/this/mirror ダウンロードサイトより:md5 4480d7c6d6b4a86de7b8ec8f0c2d1871 [root@water0 archive]# md5sum php-5.3.2.tar.gz 4480d7c6d6b4a86de7b8ec8f0c2d1871 php-5.3.2.tar.gz [root@localhost archive]# cd ../make/ [root@localhost make]# tar zxvf ../archive/php-5.3.2.tar.gz インストール [root@localhost make]# cd php-5.3.2/ [root@water0 php-5.3.2] #./configure \ --with-config-file-path=/etc \ --prefix=/usr/local/php \ --with-apxs2=/usr/local/apache/bin/apxs \ --with-mysql=/usr/local/mysql \ --with-pdo-mysql=/usr/local/mysql \ --enable-mbstring \ --enable-mbregex \ --enable-zend-multibyte \ --with-zlib \ --with-bz2 \ --with-gd \ --with-jpeg-dir \ --with-png-dir \ --enable-exif \ --with-iconv \ --enable-bcmath \ --with-gmp \ --enable-sockets \ --enable-ftp \ --with-openssl \ --with-curl \ --enable-bcmath 2 1 |tee configure_100503.log オプション 説明 --with-config-file-path php.ini の検索ディレクトリパスを指定。デフォルトは、phpをインストールしたディレクトリのetcディレクトリを検索 エラー configure error xml2-config not found. Please check your libxml2 installation. yum install libxml2-devel -y で解決 configure error Please reinstall the BZip2 distribution yum -y install bzip2-devel -y で解決 configure error Please reinstall the libcurl distribution -easy.h should be in curl-dir /include/curl/ yum install curl-devel -y で解決 configure error libjpeg.(a|so) not found. yum install libjpeg-devel -y で解決 configure error libpng.(a|so) not found. yum install libpng-develで解決 configure error Unable to locate gmp.h yum install gmp-develで解決 他のconfigureの設定 http //akiba.biz/Linux/php.php [root@water0 php-5.3.2]# make 2 1 |tee make_100503.log [root@water0 php-5.3.2]# make test [root@water0 php-5.3.2]# make install 2 1 |tee make_install_100503.log コマンドにPATHを通す PATHが通ってないので/etc/profileに追加(次回起動時に読み込む export PATH=$PATH /usr/local/mysql/bin ← 一時的な設定 MIMEタイプの追加(AddType) 参考 http //www.adminweb.jp/apache/docroot/index4.html クライアントからリクエストがあったファイルに対して、WWWサーバはファイルの内容を返すと同時にそのファイルがどのような種類のファイルなのかを合わせてクライアントへ返します。その結果、クライアント側は取得したデータを適切な表示方法で扱うことが出来るようになります。 [root@water0 ~]# vi /usr/local/apache/conf/httpd.conf IfModule mime_module TypesConfig conf/mime.types AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType application/x-httpd-php .php ←追加 AddType application/x-httpd-php-source .phps ←追加 /IfModule mime.typesのPATH [root@water0 ~]# less /usr/local/apache/conf/mime.types RCS httpd再起動 [root@water0 conf]# /etc/init.d/httpd restart 確認 http //192.168.1.104/index.php
https://w.atwiki.jp/lsl_japan/pages/39.html
イベント http_response http_response(key request_id, integer status, list metadata, string body) このイベントハンドラはllHTTPRequest()関数で送信したリクエストに対して HTTPレスポンスを受信したときに発生します。 また、llHTTPRequest()関数で送信したリクエストに対してリクエストが失敗していたり、タイムアウトした時にも発生します。 request_idにはllHTTPRequest()関数の呼び出しが発生したときにllHTTPRequest()関数が返したUUIDの値が格納されます。 statusはHTTPレスポンスが返されたのか、リクエストが失敗した原因を示すHTTPステータスコードが設定されます。 499はTCPコネクションの確立が失敗したときや、コネクションが確立されても、それが無効なHTTP応答あった場合を示します。 ま、499は相手が無効なSSL証明書を持っている場合や、証明をつけてあっても、 一定時間(60秒に設定されることが多いらしい)以上経過して応答がなかった場合も499を受け取ります。 503はDNSへの問い合わせが失敗したことを示します。 #本来のHTTPにおいてはService Unavailable(サービス利用負荷)と呼ばれ、 サーバはサーバの一時的な過負荷あるいはメインテナンスのために、 現在、リクエストを扱うことができないことを意味します。 metadataは応答について説明するキーと値の組のペアがリストとして格納されます。 現在、返されるであろう唯一のキーはHTTP_BODY_TRUNCATEDです。 Valueにはイベントの受信容量の制限によって切り捨てられた情報のバイト数を示します。 応答がテキストmime-typeを指定する「content-type 」ヘッダーを含んでいる限り,bodyはHTTP応答のbodyに設定されます。 mime-typeが指定されないか、タイプがテキストタイプでないなら、bodyは「"Unsupported or unknown Content-Type." (サポートされないか未知のコンテントタイプ)」に設定されます。 「content-type 」ヘッダーで文字セットを指定すると、ボディーはUTF-8に変換されて応答するでしょう、また、サポートされてない文字コードが指定された場合は「サポートされないか未知の文字集合」に設定されるでしょう。 ボディーは現在、2048バイト以内に制限されます。 "\n"はLSLではコンパイル時に「改行文字」に変換されることを忘れないでください。 そして、あなたのサーバーが"\n"以外の文字を「改行文字」として定義されている可能性があります。 あなたは「改行」を加える適切な方法がないかどうかあなたのサーバのドキュメンテーションをチェックするべきです。 あなたのマイレージは変わるかもしれません。-Ice あなたのWEBサーバーからデーターを得る簡単なスクリプト例 //This script requests from our data source (URL) and echoes out what it sends to the owner of the script //I use this to test my PHP apps personally, it s a simple debugging application so I release it publicly //You may use, redistribute, modify, copy however you feel would be useful string URL="http //www.secondlife.com/httprequest/homepage.php"; key http;//This stores the HTTP request we send. default { touch_start(integer foo) { http=llHTTPRequest(URL, [] ,""); } http_response(key id,integer status, list meta, string body) { if(http==id) { integer i; list lbody=llParseString2List(body,["\n"],[]); integer count=llGetListLength(lbody); //This turns newline characters char(10) //into new lines in chat //These are Unix/LSL style end of lines, //use \r\n in place of \n for //Windows style end of line from web server. for(i=0;i count;i++) { llOwnerSay(llList2String(lbody,i)); } } } }
https://w.atwiki.jp/freebsd7/pages/22.html
PHPとは Web開発に特化しており、HTMLに埋め込むことができる 多くの人に利用されているスクリプト言語の一つです。 同じ様なものでCGI、Perl、ASP、Ruby等が挙げられます。 テキストエディタで作成し、サーバにアップすることで直ぐに実行結果が反映され、簡単に編集を行うことができます。 PHPのインストール 設定 プログラミング ↓ ↓ ↓ ↓ ↓ ↓ 以下、広告です。↓ ↓ ↓ ↓ ↓ ↓
https://w.atwiki.jp/paserss/pages/15.html
Sony a présenté aujourd hui une nouvelle gamme de portables fins et légers avec des regards élégants et disponibles dans cinq couleurs brillantes. Les ordinateurs portables Sony VAIO CR sont destinés aux plus jeunes utilisateurs intéressés de regards et compacité plutôt que des performances haut de gamme. Taillée en argent et disponible en cinq couleurs curieusement nommées (sangria, cosmopolite, Colombe, indigo et noir), les nouveaux portables de CR sont plus à l aise dans un dortoir de collège qu une salle de conférence. Batterie Sony vaio vgp-bps24 Touches intéressantes incluent une police spécialisée clavier, une LED qui palpite sous la garniture de l ordinateur portable pour indiquer ce qui se passe — démarrage, mettre hors tension, hibernation — et rougeoyant et à la décoloration en conséquence. Chaque cahier de CR est livré avec son propre VAIO marqué papier peint et couleurs assorties en option sac de transport et souris. Pesant 5,5 kilos avec la batterie standard, le CR vous permet de bouger tout en se faire remarquer. Chargé avec un Intel Centrino Core 2 Duo 1,8 GHz processeur T7100 (Intel Santa Rosa) fournissant avec beaucoup de puissance et efficacité énergétique pour la plupart des utilisateurs. Le CR est livré pré-installé avec système d exploitation Windows Vista Home Premium et l édition de Windows Vista Professionnel est une mise à niveau en option. Équipé d un écran de 14,1 pouces doté de la technologie XBRITE-ECO LCD de Sony, un modèle d enceintes le CR CD/DVD lecteur/graveur et fonction intégrée saura satisfaire la plupart de vos besoins de divertissement. Mode de fusion instantanée et A / V contrôles fournissent un accès sur demande à des films, Batterie Sony vaio vgp-bps22a de musique et de photos sans avoir besoin de démarrage du système d exploitation. Les carnets de CR viennent également chargés avec le logiciel de Sony LocationFree, ainsi vous pouvez regarder la télévision, accéder à vos personnel magnétoscope ou lecteur DVD et découvre que le contenu de votre ordinateur portable via Internet et d une station de base disponible. Un appareil photo numérique intégré et un microphone vous permettent de prendre des photos ou participer à des chats vidéo direct. Équipé d un Memory Stick Duo, Memory Stick Pro, Batterie Sony vaio vgp-bps21a carte SD et carte ExpressCard fentes de média, le CR vous permet d accéder instantanément à vos fichiers multimédias numériques provenant d autres appareils. Le port S-vidéo inclus le rend pratique pour connecter le CR à un téléviseur et regarder un DVD ou jouer à des jeux sur grand écran.
https://w.atwiki.jp/amazonz/pages/20.html
アップロード・ダウンロード ?php session_start(); $logoutAction = $_SERVER[ PHP_SELF ]."?doLogout=true"; if (*1) ($_SERVER[ QUERY_STRING ] != "")){ $logoutAction .=" ". htmlentities($_SERVER[ QUERY_STRING ]); } if (*2) ($_GET[ doLogout ]=="true")){ //to fully log out a visitor we need to clear the session varialbles session_unregister( MM_Username ); session_unregister( MM_UserGroup ); $logoutGoTo = "view.php"; if ($logoutGoTo) { header("Location $logoutGoTo"); exit; } } ? ?php require_once( Connections/connAmazon2.php ); ? ?php session_start(); $MM_authorizedUsers = ""; $MM_donotCheckaccess = "true"; function isAuthorized($strUsers, $strGroups, $UserName, $UserGroup) { // For security, start by assuming the visitor is NOT authorized. $isValid = False; // When a visitor has logged into this site, the Session variable MM_Username set equal to their username. // Therefore, we know that a user is NOT logged in if that Session variable is blank. if (!empty($UserName)) { // Besides being logged in, you may restrict access to only certain users based on an ID established when they login. // Parse the strings into arrays. $arrUsers = Explode(",", $strUsers); $arrGroups = Explode(",", $strGroups); if (in_array($UserName, $arrUsers)) { $isValid = true; } // Or, you may restrict access to only certain users based on their username. if (in_array($UserGroup, $arrGroups)) { $isValid = true; } if (($strUsers == "") true) { $isValid = true; } } return $isValid; } $MM_restrictGoTo = "login.php"; if (!(*3) (isAuthorized("",$MM_authorizedUsers, $_SESSION[ MM_Username ], $_SESSION[ MM_UserGroup ])))) { $MM_qsChar = "?"; $MM_referrer = $_SERVER[ PHP_SELF ]; if (strpos($MM_restrictGoTo, "?")) $MM_qsChar = " "; if (isset($QUERY_STRING) strlen($QUERY_STRING) 0) $MM_referrer .= "?" . $QUERY_STRING; $MM_restrictGoTo = $MM_restrictGoTo. $MM_qsChar . "accesscheck=" . urlencode($MM_referrer); header("Location ". $MM_restrictGoTo); exit; } ? ?php $currentPage = $_SERVER["PHP_SELF"]; function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { $theValue = (!get_magic_quotes_gpc()) ? addslashes($theValue) $theValue; switch ($theType) { case "text" $theValue = ($theValue != "") ? " " . $theValue . " " "NULL"; break; case "long" case "int" $theValue = ($theValue != "") ? intval($theValue) "NULL"; break; case "double" $theValue = ($theValue != "") ? " " . doubleval($theValue) . " " "NULL"; break; case "date" $theValue = ($theValue != "") ? " " . $theValue . " " "NULL"; break; case "defined" $theValue = ($theValue != "") ? $theDefinedValue $theNotDefinedValue; break; } return $theValue; } $editFormAction = $_SERVER[ PHP_SELF ]; if (isset($_SERVER[ QUERY_STRING ])) { $editFormAction .= "?" . htmlentities($_SERVER[ QUERY_STRING ]); } if (*4) ($_POST["MM_insert"] == "form2")) { $insertSQL = sprintf("INSERT INTO amazonz_data (id, title, category, topic, uptime, uset_id) VALUES (%s, %s, %s, %s, %s, %s)", GetSQLValueString($_POST[ id ], "int"), GetSQLValueString($_POST[ title ], "text"), GetSQLValueString($_POST[ category ], "text"), GetSQLValueString($_POST[ topic ], "text"), GetSQLValueString($_POST[ uptime ], "date"), GetSQLValueString($_POST[ uset_id ], "text")); mysql_select_db($database_connAmazon2, $connAmazon2); $Result1 = mysql_query($insertSQL, $connAmazon2) or die(mysql_error()); $insertGoTo = "admin.php"; if (isset($_SERVER[ QUERY_STRING ])) { $insertGoTo .= (strpos($insertGoTo, ? )) ? " " "?"; $insertGoTo .= $_SERVER[ QUERY_STRING ]; } header(sprintf("Location %s", $insertGoTo)); } $maxRows_rsAmazonz2 = 10; $pageNum_rsAmazonz2 = 0; if (isset($_GET[ pageNum_rsAmazonz2 ])) { $pageNum_rsAmazonz2 = $_GET[ pageNum_rsAmazonz2 ]; } $startRow_rsAmazonz2 = $pageNum_rsAmazonz2 * $maxRows_rsAmazonz2; $colname_rsAmazonz2 = "%"; if (isset($_GET[ key ])) { $colname_rsAmazonz2 = (get_magic_quotes_gpc()) ? $_GET[ key ] addslashes($_GET[ key ]); } mysql_select_db($database_connAmazon2, $connAmazon2); $sessionname=$_SESSION[ MM_Username ]; $query_rsAmazonz2 = sprintf("SELECT * FROM amazonz_data WHERE topic LIKE %s uset_id = $sessionname ORDER BY uptime DESC" , $colname_rsAmazonz2); $query_limit_rsAmazonz2 = sprintf("%s LIMIT %d, %d", $query_rsAmazonz2, $startRow_rsAmazonz2, $maxRows_rsAmazonz2); $rsAmazonz2 = mysql_query($query_limit_rsAmazonz2, $connAmazon2) or die(mysql_error()); $row_rsAmazonz2 = mysql_fetch_assoc($rsAmazonz2); if (isset($_GET[ totalRows_rsAmazonz2 ])) { $totalRows_rsAmazonz2 = $_GET[ totalRows_rsAmazonz2 ]; } else { $all_rsAmazonz2 = mysql_query($query_rsAmazonz2); $totalRows_rsAmazonz2 = mysql_num_rows($all_rsAmazonz2); } $totalPages_rsAmazonz2 = ceil($totalRows_rsAmazonz2/$maxRows_rsAmazonz2)-1; $queryString_rsAmazonz2 = ""; if (!empty($_SERVER[ QUERY_STRING ])) { $params = explode(" ", $_SERVER[ QUERY_STRING ]); $newParams = array(); foreach ($params as $param) { if (stristr($param, "pageNum_rsAmazonz2") == false stristr($param, "totalRows_rsAmazonz2") == false) { array_push($newParams, $param); } } if (count($newParams) != 0) { $queryString_rsAmazonz2 = " " . htmlentities(implode(" ", $newParams)); } } $queryString_rsAmazonz2 = sprintf(" totalRows_rsAmazonz2=%d%s", $totalRows_rsAmazonz2, $queryString_rsAmazonz2); ? !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http //www.w3.org/TR/html4/loose.dtd" html head meta http-equiv="Content-Type" content="text/html; charset=euc-jp" title ログ管理 /title style type="text/css" !-- .style6 {font-size 10px} /style /head body form name="form1" method="get" action="" div align="center" ?php echo ($_SESSION[ MM_Username ]. "さん こんにちわ!"); ? input name="key" type="text" id="key" input name="Submit" type="submit" value="検索" a href="add.php" 投稿 /a a href=" ?php echo $logoutAction ? " ログアウト /a a href="view.php" 投稿閲覧 /a /div /form br form method="post" name="form2" action=" ?php echo $editFormAction; ? " table width="250" height="100" align="center" tr valign="baseline" td align="left" nowrap class="style6" タイトル: input type="text" name="title" value="" size="32" /td /tr tr valign="baseline" td align="left" nowrap span class="style6" カテゴリ: select name="category" option value="BOOK" ?php if (!(strcmp("BOOK", ""))) {echo "SELECTED";} ? BOOK /option option value="DVD" ?php if (!(strcmp("DVD", ""))) {echo "SELECTED";} ? DVD /option option value="CD" ?php if (!(strcmp("CD", ""))) {echo "SELECTED";} ? CD /option /select /span /td /tr tr valign="baseline" td align="left" valign="top" nowrap p class="style6" トピック: br textarea name="topic" cols="40" rows="5" /textarea /p /td /tr tr valign="baseline" td align="left" nowrap input type="submit" value="投稿" /td /tr /table input type="hidden" name="id" value="" input type="hidden" name="uptime" value=" ?php echo date( Y/m/d H i s ); ? " input type="hidden" name="uset_id" value=" ?php echo($_SESSION[ MM_Username ]); ? " input type="hidden" name="MM_insert" value="form2" /form p nbsp; /p table width="400" border="0" align="center" cellpadding="3" ?php do { ? tr td span class="style6" ?php echo $row_rsAmazonz2[ uptime ]; ? /span /td /tr tr td span class="style6" ?php echo $row_rsAmazonz2[ title ]; ? /span /td /tr tr td span class="style6" ?php echo $row_rsAmazonz2[ category ]; ? /span /td /tr tr td span class="style6" ?php echo $row_rsAmazonz2[ topic ]; ? /span /td /tr tr td span class="style6" ?php echo $row_rsAmazonz2[ uset_id ]; ? /span /td /tr tr td span class="style6" a href="update.php?id= ?php echo $row_rsAmazonz2[ id ]; ? " 修正 /a a href="del.php?id= ?php echo $row_rsAmazonz2[ id ]; ? " 削除 /a /span hr /td /tr ?php } while ($row_rsAmazonz2 = mysql_fetch_assoc($rsAmazonz2)); ? /table table border="0" width="50%" align="center" tr td width="23%" align="center" ?php if ($pageNum_rsAmazonz2 0) { // Show if not first page ? a href=" ?php printf("%s?pageNum_rsAmazonz2=%d%s", $currentPage, 0, $queryString_rsAmazonz2); ? " 先頭 /a ?php } // Show if not first page ? /td td width="31%" align="center" ?php if ($pageNum_rsAmazonz2 0) { // Show if not first page ? a href=" ?php printf("%s?pageNum_rsAmazonz2=%d%s", $currentPage, max(0, $pageNum_rsAmazonz2 - 1), $queryString_rsAmazonz2); ? " 戻る /a ?php } // Show if not first page ? /td td width="23%" align="center" ?php if ($pageNum_rsAmazonz2 $totalPages_rsAmazonz2) { // Show if not last page ? a href=" ?php printf("%s?pageNum_rsAmazonz2=%d%s", $currentPage, min($totalPages_rsAmazonz2, $pageNum_rsAmazonz2 + 1), $queryString_rsAmazonz2); ? " 次へ /a ?php } // Show if not last page ? /td td width="23%" align="center" ?php if ($pageNum_rsAmazonz2 $totalPages_rsAmazonz2) { // Show if not last page ? a href=" ?php printf("%s?pageNum_rsAmazonz2=%d%s", $currentPage, $totalPages_rsAmazonz2, $queryString_rsAmazonz2); ? " 最終 /a ?php } // Show if not last page ? /td /tr /table /body /html ?php mysql_free_result($rsAmazonz2); ?
https://w.atwiki.jp/scratchpad/pages/16.html
PDO_OCI PHPExcel PDO_OCI tns指定時には、余分な空白があるとダメみたい。一行で記述するのが手っ取り早い? $tns = "(DESCRIPTION = (ADDRESS_LIST = (ADDRESS = (PROTOCOL = TCP)(HOST = yourip)(PORT = 1521)))(CONNECT_DATA = (SERVICE_NAME = orcl)))" $db_username = "youname"; $db_password = "yourpassword"; try{ $conn = new PDO("oci dbname=".$tns,$db_username,$db_password); }catch(PDOException $e){ echo ($e- getMessage()); } PHPExcel 特徴 PHPで、Excelファイルの作成・編集・保存等ができる。 COMを使わないため、サーバがWindows以外(FreeBSD,Linux他)でもよい。 導入 PHP Excel 2007 classesよりダウンロード。(version 1.6.0;2007/2/14現在) 解凍してパスの通ったところに配置する。 使用 読み書きExcelファイル形式に合わせたライブラリを読み込む。 Excelファイルの形式 処理 備考 xlsx 読込み Reader/Excel2007.phpをrequire 書込み Writer/Excel2007.phpをrequire xls 読込み 不可 書込み Writer/Excel5.phpをriquire 日本語フォント xlsx形式 特に問題なし。 xls形式 フォント名が半角英数字のもののみ使用可 (どれが使えるかは、Fontsディレクトリで確認)標準でつかえそうなのは、以下の4つ。 MS Gothic MS PGothic MS Mincho MS PMincho 動作感 Excel2000等をメインで使っている環境の場合、雛形ファイルをExcel2007で作成→PHPExcelで操作→xls形式で保存という流れに。 条件付き書式等は、保存時に失われる模様。(xls,xlsxとも) 日本語フォントもデフォルトに戻る?(該当セルに合わせてみるとフォント名が崩れている) 日本語はUTF−8で使用可。
https://w.atwiki.jp/freebsd7/pages/26.html
今回のPHP制作は巷で話題の「Subversion」を使用したいと思います。 別にCVSでもVSSでも良いのですが、、 製造時に利用しやすいものに変更するかも知れません。 Subversionは解りやすい解説サイトがありますので こちらを御覧ください。 Subversionの基礎練習 結城浩 http //www.hyuki.com/techinfo/svninit.html ダウンロード http //subversion.tigris.org/servlets/ProjectDocumentList?folderID=91 ↓ ↓ ↓ ↓ ↓ ↓ 以下、広告です。↓ ↓ ↓ ↓ ↓ ↓